package com.example.dbmeta.meta.common.xml;

import lombok.Data;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "configurations")
@XmlAccessorType(XmlAccessType.FIELD)
@Data
public class Configurations {

    @XmlElement
    private Integer keepdays;

    @XmlElement(name = "sourcedatasource")
    private SourceDataSource sourceDataSource=new SourceDataSource();

    @XmlElement(name = "destinationdatasource")
    private DestinationDataSource destinationDataSource=new DestinationDataSource();
}

//    @XmlElement
//    private Integer keepdays;
//    @XmlElement(name = "datainstance")
//    private List<DataInstance> dataInstances;
//
//    public Integer getKeepdays() {
//        return keepdays;
//    }
//
//    public void setKeepdays(Integer keepdays) {
//        this.keepdays = keepdays;
//    }
//
//
//    public List<DataInstance> getDataInstances() {
//        return dataInstances;
//    }
//
//    public void setDataInstances(List<DataInstance> dataInstances) {
//        this.dataInstances = dataInstances;
//    }

